package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 班级自定义设置
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-28
 */
@Data
@TableName("grade_custom_grade")
@ApiModel(value = "GradeCustomGrade对象", description = "班级自定义设置")
public class GradeCustomGrade implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("对应grade_custom_set表id")
    private Long gradeCustomSetId;

    @ApiModelProperty("学期班：周内：A类，周末：B类,假期：A天，B天")
    private String schedulingType;

    @ApiModelProperty("开始时间")
    private String timeStart;

    @ApiModelProperty("截止时间")
    private String timeEnd;

    @ApiModelProperty("班级名称")
    private String gradeName;

    @ApiModelProperty("满班人数")
    private Integer fullCount;

    @ApiModelProperty("添加人")
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;

}
